# https://ssr1.scrape.center/
import requests
from bs4 import BeautifulSoup


def get_data():
    url = f'https://ssr1.scrape.center/'
    headers = {
        "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) Chrome/101.0.0.0 Safari/537.36",
        "Cookie": "sessionid=pwin2ge9j7t9ttj5m15pjwar9m4sj9tc;",
    }
    content = requests.get(url, headers=headers).text
    bs4_data = BeautifulSoup(content, "lxml")
    name_list = bs4_data.select('.el-row .name h2')
    return [name_el.text for name_el in name_list]


def main():
    res = get_data()
    print(res)


if __name__ == '__main__':
    main()
